// 获取上个月天数
const getLastMounthDays = () => {
    const nowDay = new Date()
    nowDay.setDate(0)
    const lastMounthDays = nowDay.getDate()
    return lastMounthDays
}
// 获取本月天数
const getCurrentMounthDays = () => {
    const nowDay = new Date()
    nowDay.setMonth(nowDay.getMonth() + 1, 0)
    const currentMounthDays = nowDay.getDate()
    return currentMounthDays
}
// 获取今年某月的总天数
const getSomeMonthDays = (month) => {
    const nowDay = new Date()
    nowDay.setMonth(month, 0)
    return nowDay.getDate()
}
const dayNum = getLastMounthDays()
console.log('上月天数', dayNum);
const dayNum2 = getCurrentMounthDays()
console.log('当月天数', dayNum2);
for (let i = 0; i < 12; i++) {
    // console.log(`今年`, i + 1, `月有`, getSomeMonthDays(i), '天');
    console.log(`今年%c${i+1}%c月有%c${getSomeMonthDays(i + 1)}%c天`, 'color: #ff00ff;', 'color: #000000;', 'color: #ff00ff;', 'color: #000000;');
}
// 获取日期类型
const getDateType = () => {
    const date = new Date()
    console.log('getDateType', date instanceof Object, date instanceof Date);
}
// getDateType()
let i = 2
i += i++ + ++i
console.log('i', i);